package week1exercises;

import static java.lang.System.out;

public class Main {

    public static void main(String[] args) {
        out.println("Intro programming exercises");

        out.println("Triangle exercises:");
        out.println("Single asterisk:");
        out.println(Triangle.singleAsterisk());
        out.println("Horizontal line (8):");
        out.println(Triangle.horizontalLine(8));
        out.println("Vertical line (3):");
        out.println(Triangle.verticalLine(3));
        out.println("Right triangle (3):");
        out.println(Triangle.rightTriangle(3));

        out.println("Diamond exercises:");
        out.println("Isosceles triangle (3):");
        out.println(Diamond.isoscelesTriangle(3));
        out.println("Diamond (3):");
        out.println(Diamond.diamond(3));
        out.println("Diamond with name (3, Cam):");
        out.println(Diamond.diamondWithName(3, "Cam"));

        out.println("FizzBuzz exercise (1 to 100):");
        out.println(FizzBuzz.fizzbuzz(1, 100));

        out.println("Prime Factors exercise:");
        out.print("7: ");
        out.println(PrimeFactors.generate(7));
        out.print("30: ");
        out.println(PrimeFactors.generate(30));
        out.print("24570: ");
        out.println(PrimeFactors.generate(24570));
    }
}
